home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
ccdl150l.zip
/
IO
/
FPUTC.C
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-08
|
436b
|
25 lines
#include <stdio.h>
#include <time.h>
#include <libp.h>
int _baseputc(int c, FILE *stream);
int fputc(int c, FILE *stream)
{
if (stream->token != FILTOK)
return EOF;
if (!(stream->flags & _F_WRIT)) {
stream->flags |= _F_ERR;
return EOF;
}
return _baseputc(c,stream);
}
#undef putc
#undef putchar
int putc(int c, FILE *stream)
{
return fputc(c,stream);
}
int putchar(int c)
{
return fputc(c,stdout);
}